package classes
{
	import UIFree.uif_component;
	
	import UIUtils.uif_util;
	
	import flash.geom.Rectangle;
	
	public class clt_utils {
		public static function usersUnion(list1: Array, list2: Array): Array {
			var users: Object = {};
			var result: Array = new Array();
			
			list1.forEach(function(item: Object, index: int, arr: Array): void {
				users[item.uid] = item;
			});
			list2.forEach(function(item: Object, index: int, arr: Array): void {
				result.push(uif_util.union(item, users[item.uid]));
			});
			
			return result;
		}
	}
}